package edu.zut.cs.software.person.staff.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.zut.cs.software.person.staff.dao.StaffDao;
import edu.zut.cs.software.person.staff.domain.Staff;
import edu.zut.cs.software.person.staff.service.StaffManager;
import edu.zut.cs.software.teach.Base.service.impl.GenericManagerImpl;

/**
 * 
 * @author liyahui 
 * staff manager methods implements
 */
@Service(value = "StaffManager")
public class StaffManagerImpl extends GenericManagerImpl<Long, Staff> implements StaffManager {

	StaffDao staffdao;

	@Autowired
	public void setStaffdao(StaffDao staffdao) {
		this.staffdao = staffdao;
		this.dao=staffdao;
	}

	/*
	 * return staff information
	 */
	@Override
	public String StaffInformation(Staff staff) {
		String Info;
		Info = "员工id:" + staff.getId() + " " + "员工姓名：" + staff.getName() + " " + " " + "员工工作组：" + staff.getWorkgroup()
				+ " " + "员工薪水：" + staff.getSalary();
		return Info;
	}

	@Override
	public void Add(Staff staff) {
		// TODO Auto-generated method stub

	}

	@Override
	public void Delete(Staff staff) {
		// TODO Auto-generated method stub

	}

	@Override
	public void Modify(Staff staff) {
		// TODO Auto-generated method stub

	}

}
